<?php
/**
 * ExtConnection class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtConnection extends ExtConnectionBase
{
    /**
     * Gets the value of ExtJS autoAbort property
     * @return Boolean 
     */
    public function getAutoAbort()
    {
    	return $this->getConfig("autoabort");
    }

    /**
     * Sets the value of ExtJS autoAbort property
     * @param Boolean $value 
     */
    public function setAutoAbort($value)
    {
    	$this->setConfig("autoabort",$value);
    }

    /**
     * Gets the value of ExtJS disableCaching property
     * @return Boolean 
     */
    public function getDisableCaching()
    {
    	return $this->getConfig("disablecaching");
    }

    /**
     * Sets the value of ExtJS disableCaching property
     * @param Boolean $value 
     */
    public function setDisableCaching($value)
    {
    	$this->setConfig("disablecaching",$value);
    }

    /**
     * Gets the value of ExtJS disableCachingParam property
     * @return String 
     */
    public function getDisableCachingParam()
    {
    	return $this->getConfig("disablecachingparam");
    }

    /**
     * Sets the value of ExtJS disableCachingParam property
     * @param String $value 
     */
    public function setDisableCachingParam($value)
    {
    	$this->setConfig("disablecachingparam",$value);
    }

    /**
     * Gets the value of ExtJS method property
     * @return String 
     */
    public function getMethod()
    {
    	return $this->getConfig("method");
    }

    /**
     * Sets the value of ExtJS method property
     * @param String $value 
     */
    public function setMethod($value)
    {
    	$this->setConfig("method",$value);
    }

    /**
     * Gets the value of ExtJS timeout property
     * @return Number 
     */
    public function getTimeout()
    {
    	return $this->getConfig("timeout");
    }

    /**
     * Sets the value of ExtJS timeout property
     * @param Number $value 
     */
    public function setTimeout($value)
    {
    	$this->setConfig("timeout",$value);
    }

    /**
     * Gets the value of ExtJS url property
     * @return String 
     */
    public function getUrl()
    {
    	return $this->getConfig("url");
    }

    /**
     * Sets the value of ExtJS url property
     * @param String $value 
     */
    public function setUrl($value)
    {
    	$this->setConfig("url",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'autoabort' => 'autoAbort',
            'disablecaching' => 'disableCaching',
            'disablecachingparam' => 'disableCachingParam'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'beforerequest' => array('conn','options'),
            'requestcomplete' => array('conn','response','options'),
            'requestexception' => array('conn','response','options')
        ));


        $this->proptags = array_merge($this->proptags,array(
            'defaultheaders' => true,
            'extraparams' => true
        ));
        $this->setXType(null);
        $this->setXClass('Ext.data.Connection');
    }    
}
?>